import { injectReducer } from '../../reducers'
//import ArtileListRoute from './routes/article/routes/list'


export default (store) => ({
    path: 'dictionary',
    // childRoutes: [
    //     ArtileListRoute(store)
    // ],
    // getChildRoutes(partialNextState, cb) {
    //     require.ensure([], (require) => {
    //         cb(null, [
    //             require('./routes/article')
    //         ])
    //     })
    // },
    getComponent(nextState, cb) {
        require.ensure([], (require) => {

            const DictionaryContainer = require('./containers/DictionaryContainer').default
            const reducer = require('./reducers/dictionary').default

            injectReducer(store, { key: 'dictionary', reducer })
            cb(null, DictionaryContainer)

        }, 'dictionary')
    }
})